package project2;

    public abstract class Car {
        private String chePaiHao;
        private String logo;
        private double zhuJin;
        private int zuoWeiShu=5;
        private String zhuangTai="当前可租";


        public Car(String chePaiHao, String logo, double zhuJin, int zuoWeiShu) {
            this.chePaiHao = chePaiHao;
            this.logo = logo;
            this.zhuJin = zhuJin;
            this.zuoWeiShu = zuoWeiShu;
        }

        public String getChePaiHao() {
            return chePaiHao;
        }

        public void setChePaiHao(String chePaiHao) {
            this.chePaiHao = chePaiHao;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public double getZhuJin() {
            return zhuJin;
        }

        public void setZhuJin(double zhuJin) {
            this.zhuJin = zhuJin;
        }

        public String getZhuangTai() {
            return zhuangTai;
        }
        public void setZhuangTai(String zhuangTai) {
            this.zhuangTai = zhuangTai;
        }

        public int getZuoWeiShu() {
            return zuoWeiShu;
        }

        public void setZuoWeiShu(int zuoWeiShu) {
            this.zuoWeiShu = zuoWeiShu;
        }

        public void show(){
            System.out.print(logo+"  ");
            System.out.print("车牌："+chePaiHao+"  ");
            System.out.print(zuoWeiShu+"坐  ");
            System.out.print("日租金"+zhuJin+"  ");
            System.out.println(zhuangTai);
        }
    }
